import Vue from 'vue'
import App from './App'


import store from './store/index'
import http from './util/http'
import VueDB from './util/vue-db'
import _ from 'lodash'
import echarts from 'echarts'
import 'echarts/map/js/china'
Vue.prototype.$echarts = echarts

import Antd from 'ant-design-vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(Antd);
Vue.use(ElementUI);
import 'ant-design-vue/dist/antd.css';
// import E from 'wangeditor'
import './assets/reset.scss'
// import BaiduMap from 'vue-baidu-map'
import VueAMap from 'vue-amap';
// Vue.use(BaiduMap, {
//   // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
//   ak: 'NQumLGXOQG8klqamnlg82wGD8podiMNW'
// })
Vue.use(VueAMap);
VueAMap.initAMapApiLoader({
  key: 'e623670cd954f59bd9ac4909909e4025',
  plugin: ['MarkerClusterer'],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.15'
});
import router from './router'
Vue.config.productionTip = false;

Vue.prototype.$_ = _;
Vue.prototype.http = http;
Vue.prototype.DB = new VueDB();
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app")